package com.ebuy.shopping.mapper;

import java.util.List;

import com.ebuy.shopping.model.Product;

public interface ProductMapper
{
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> getProductsByCategoryId(Integer id);

    List<Product> getProductsBySaleType(Integer saleType);

    List<Product> getProducts();

}